package cn.zzz.openplatform.amap.model.direction;

import cn.zzz.openplatform.amap.constant.AmapUrlConstant;
import cn.zzz.openplatform.amap.model.AmapOpenApiRequest;
import lombok.*;

/**
 * 骑行路径规划请求参数
 * <a href="https://lbs.amap.com/api/webservice/guide/api/direction#bicycling">接口文档</a>
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AmapBicyclingDirectionRequest extends AmapOpenApiRequest<AmapBicyclingDirectionResponse> {

    /**
     * 出发点
     * 规则：lon,lat（经度,纬度），如117.500244, 40.417801 经纬度小数点不超过6位
     * 必填：是
     */
    private String origin;

    /**
     * 目的地
     * 规则：lon,lat（经度,纬度），如117.500244, 40.417801 经纬度小数点不超过6位
     * 必填：是
     */
    private String destination;

    @Override
    public Class<AmapBicyclingDirectionResponse> getResponseClass() {
        return AmapBicyclingDirectionResponse.class;
    }

    @Override
    public String getUrl() {
        return AmapUrlConstant.BICYCLING_PATH_PLAN_URL;
    }
}
